/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package th.model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author fikri
 */
@Entity
@Table(name = "info_petugas")
@NamedQueries({
    @NamedQuery(name = "InfoPetugas.findAll", query = "SELECT i FROM InfoPetugas i")})
public class InfoPetugas implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id_info_petugas")
    private Integer idInfoPetugas;
    @Column(name = "nama")
    private String nama;
    @Column(name = "no_tel")
    private String noTel;

    public InfoPetugas() {
    }

    public InfoPetugas(Integer idInfoPetugas) {
        this.idInfoPetugas = idInfoPetugas;
    }

    public Integer getIdInfoPetugas() {
        return idInfoPetugas;
    }

    public void setIdInfoPetugas(Integer idInfoPetugas) {
        this.idInfoPetugas = idInfoPetugas;
    }

    public String getNama() {
        return nama;
    }

    public void setNama(String nama) {
        this.nama = nama;
    }

    public String getNoTel() {
        return noTel;
    }

    public void setNoTel(String noTel) {
        this.noTel = noTel;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idInfoPetugas != null ? idInfoPetugas.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof InfoPetugas)) {
            return false;
        }
        InfoPetugas other = (InfoPetugas) object;
        if ((this.idInfoPetugas == null && other.idInfoPetugas != null) || (this.idInfoPetugas != null && !this.idInfoPetugas.equals(other.idInfoPetugas))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "th.model.InfoPetugas[ idInfoPetugas=" + idInfoPetugas + " ]";
    }
    
}
